package com.xiaomi.pojo;

import java.io.Serializable;
import java.util.List;

//订单详情表
public class Billdetailed implements Serializable {

    private int bdid;//订单详情表id
    private int deid;//商品表id
    private int count;//商品数量
    private double cprice;//商品价格
    private String bid;//订单编号

    private int cid;//商品id
    private String comname;//商品名称
    private String picture;//商品图片

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getComname() {
        return comname;
    }

    public void setComname(String comname) {
        this.comname = comname;
    }

    public String getPicture() {
        String[] path = picture.split(",");
        for (int i = 0; i < path.length; i++) {
            System.out.println(path[i]);
        }
        return path[0];
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public int getBdid() {
        return bdid;
    }

    public void setBdid(int bdid) {
        this.bdid = bdid;
    }

    public int getDeid() {
        return deid;
    }

    public void setDeid(int deid) {
        this.deid = deid;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public double getCprice() {
        return cprice;
    }

    public void setCprice(double cprice) {
        this.cprice = cprice;
    }

    public String getBid() {
        return bid;
    }

    public void setBid(String bid) {
        this.bid = bid;
    }

    @Override
    public String toString() {
        return "Billdetailed{" +
                "bdid=" + bdid +
                ", deid=" + deid +
                ", count=" + count +
                ", cprice=" + cprice +
                ", bid='" + bid + '\'' +
                ", cid=" + cid +
                ", comname='" + comname + '\'' +
                ", picture='" + picture + '\'' +
                '}';
    }
}
